foreach(def ${wxWidgets_DEFINITIONS})
  add_definitions(
    -D${def}
  )
endforeach()

add_executable(isledit
  isledit.cpp isledit.h
)

target_link_libraries(isledit
  PRIVATE
    wxcommon
)

install(TARGETS isledit
  RUNTIME DESTINATION "${INSTALL_BINDIR}" DESTINATION bin)
install( FILES isledit.inx DESTINATION /usr/share/inkscape/extensions )

add_custom_target( isledit_pl ALL msgfmt --output-file=pl/isledit.mo pl/isledit.po )
install(FILES pl/isledit.mo DESTINATION "${SZARP_SHAREDIR}/locales/pl_PL/LC_MESSAGES/" )
